package com.vincent.algorithms.sort;

import java.util.Collection;
import java.util.Comparator;
import java.util.List;

/**
 * Created by yangwenchang on 2017/8/22.
 */
public interface Sort {
    <T> void sort(T[] array, Comparator<? super T> c);

    static <T> void swap(T[] a, int i, int j) {
        T x = a[i];
        a[i] = a[j];
        a[j] = x;
    }
}
